package com.stockz.ui.swing.charting.model;

import java.awt.Graphics2D;
import java.awt.Rectangle;

import com.stockz.ui.swing.charting.view.StockChartPanel;


public abstract class Shape {

	protected boolean visible = true;
	protected final StockChartPanel stockChartPanel;
	
	public Shape(StockChartPanel stockChartPanel) {
		this.stockChartPanel = stockChartPanel;
	}
	
	
	public abstract void paint(Graphics2D g, Rectangle rectangle);


	public boolean isVisible() {
		return visible;
	}


	public void setVisible(boolean visible) {
		this.visible = visible;
	}


	public StockChartPanel getStockChartPanel() {
		return stockChartPanel;
	}
	
}
